<?

//Initiate Authenticate
SecurityRedirect ();

//initiate Vars
define("PRIMARY_KEY","skada");
$KEY[]         = array("PRIMARY_KEY"=>PRIMARY_KEY);
$FileName      = "ais_report_vndaging.php";
$FileTemplate  = "ais_report_vndaging_list.html";
$TableName     = "ais_memorial";
$SubHeaderTitle= "Report - Aging Vendor";
$PageSize      = 10 ;
$HTMLGridList  = "RepAgingVendor";
//************ FORM ACTION **************


//******* SHOW FORM CONTENT *********
$TBS = new clsTinyButStrong ;
$TBS->LoadTemplate($MOD_TEMPLATE_DIR."/".$FileTemplate);
$TBS->MergeBlock("monthformblk",GetArrayMonth());
$TBS->MergeBlock("yearformblk",GetArrayYear());
$SQLOffice = "SELECT * FROM tblkantor";
$TBS->MergeBlock("officeformblk",$DBMysql,$SQLOffice);
$SQLCoa = "SELECT * FROM tblcoa WHERE (".BuildAPCondition().") AND tipe=0 AND ledger = (SELECT MAX(ledger) FROM tblcoa) ORDER BY skada";
$TBS->MergeBlock("toskadaformblk",$DBMysql,$SQLCoa);
$TBS->MergeBlock("fromskadaformblk",$DBMysql,$SQLCoa);
$SQLCur = "SELECT * FROM tblcurrency";
$TBS->MergeBlock("currblk",$DBMysql,$SQLCur);
$TBS->Show();


?>
